package model;

import java.io.Serializable;

/**
 * 考题类
 */
public class Topic implements Serializable {
    private static final long serialVersionUID = -7460275514934675425L;
    private int id;//题号
    private String title;//题干
    private String option1; //答案a
    private String option2; //答案b
    private String option3; //答案c
    private String option4; //答案d
    private String modelAnswer;//标准答案

    public Topic() {
    }

    public Topic(int id, String title, String option1, String option2, String option3, String option4, String modelAnswer) {
        this.id = id;
        this.title = title;
        this.option1 = option1;
        this.option2 = option2;
        this.option3 = option3;
        this.option4 = option4;
        this.modelAnswer = modelAnswer;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getOption1() {
        return option1;
    }

    public void setOption1(String option1) {
        this.option1 = option1;
    }

    public String getOption2() {
        return option2;
    }

    public void setOption2(String option2) {
        this.option2 = option2;
    }

    public String getOption3() {
        return option3;
    }

    public void setOption3(String option3) {
        this.option3 = option3;
    }

    public String getOption4() {
        return option4;
    }

    public void setOption4(String option4) {
        this.option4 = option4;
    }

    public String getModelAnswer() {
        return modelAnswer;
    }

    public void setModelAnswer(String modelAnswer) {
        this.modelAnswer = modelAnswer;
    }

    @Override
    public String toString() {
        return
                "题号：" + id +
                        "\ttitle='" + title + '\'' +
                        "\noption1='" + option1 + '\'' +
                        "\noption2='" + option2 + '\'' +
                        "\noption3='" + option3 + '\'' +
                        "\noption4='" + option4 + '\'' +
                        '}';
    }
}
